<!-- 教练 – 首页 – 约课详情			All -->
<template>
	<view class="warps">
		<view class="f c" style="background:#fff;">
			<view class="All-lan senter p_t_31">
				<text class="white fs24">选择时间</text>
			</view>
			<view class="vw75 f b c mars">
				<view class="f d c" :class="DC==0?'hei':'hui'" @click="DCs(0)">
					<text class="fs32 bold">周一</text>
					<text class="fs20">日期</text>
				</view>
				<view class="f d c" :class="DC==1?'hei':'hui'" @click="DCs(1)">
					<text class="fs32 bold">周二</text>
					<text class="fs20">日期</text>
				</view>
				<view class="f d c" :class="DC==2?'hei':'hui'" @click="DCs(2)">
					<text class="fs32 bold">周三</text>
					<text class="fs20">日期</text>
				</view>
				<view class="f d c" :class="DC==3?'hei':'hui'" @click="DCs(3)">
					<text class="fs32 bold">周四</text>
					<text class="fs20">日期</text>
				</view>
				<view class="f d c" :class="DC==4?'hei':'hui'" @click="DCs(4)">
					<text class="fs32 bold">周五</text>
					<text class="fs20">日期</text>
				</view>
				<view class="f d c" :class="DC==5?'hei':'hui'" @click="DCs(5)">
					<text class="fs32 bold">周六</text>
					<text class="fs20">日期</text>
				</view>
			</view>
		</view>
		<!-- 第0个内容 -->
		<view v-show="DC==0">

		</view>
		<!-- 这是内容 -->
		<view class="" v-for="(item,index) in listsa" :key="index" @click="ao()">
			<view class="w93 f b">
				<view>
					<image style="width: 248rpx;height: 156rpx;" src="../../../static/img/073.png" mode=""></image>
				</view>
				<view class="vw55 f d">
					<text class="fs28 bold">课程名称课程名称课程名称</text>
					<text class="fs20 hui p_t_10">课程介绍课程介绍课程介绍课程介绍</text>
					<view class="f b p_t_40">
						<view class="">
							<text>时间时间</text>
						</view>
						<view class="information-buts">
							<view class="f b c">
								<text style="transform:scale(0.9);">会员12人</text>
								<view class="" style="margin-top:-10rpx;">|</view>
								<text style="transform:scale(0.9);">体验12人</text>
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				DC: 0, //  0:上课   1:课后
				listsa: [{
						url: '../../../static/img/015.png'
					},
					{
						url: '../../../static/img/015.png'
					},
					{
						url: '../../../static/img/015.png'
					},
					{
						url: '../../../static/img/015.png'
					},
					{
						url: '../../../static/img/015.png'
					},
					{
						url: '../../../static/img/015.png'
					}
				]
			}
		},
		onLoad() {
			// 动态导航条文字
			uni.setNavigationBarTitle({
				title: '全部课程'
			})
		},
		methods: {
			DCs(e) {
				this.DC = e
			},
			// toMeunsList(e) {
			// 	console.log(e) //这里打印出来是 0 1 2 3 数组索引值
			// 	if (e == 0) {
			// 		uni.navigateTo({
			// 			url: "/pages/jiaolianduan/details/details"
			// 		})
			// 	}
			// 	if (e == 1) {
			// 		uni.navigateTo({
			// 			url: "/pages/my/order"
			// 		})
			// 	}
			// 	if (e == 2) {
			// 		uni.navigateTo({
			// 			url: "/pages/my/favorite"
			// 		})
			// 	}
			// }
			ao(){
				uni.navigateTo({
					url:"../details/details"
				})
			}
		}
	}
</script>

<style scoped>
	.warps {
		/* height: 200vh; */
		overflow: hidden;
		background-color: #F6F8FC;
	}

	.information-buts {
		width: 228rpx;
		height: 36rpx;
		line-height: 36rpx;
		font-size: 20rpx;
		opacity: 1;
		background: #ffffff;
		border: 2rpx solid #1f73f2;
		border-radius: 18rpx 18rpx 18rpx 18rpx;
		color: #1f73f2;
	}

	.All-lan {
		width: 120rpx;
		height: 94rpx;
		opacity: 1;
		background: #1f73f2;
	}
</style>
